.my-alert {
  width: 100%;
  padding: 8px 16px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 4px;
  position: relative;
  background-color: #fff;
  overflow: hidden;
  opacity: 1;
  display: flex;
  align-items: center;
  transition: opacity .2s;

  &+& {
    margin-top: 12px;
  }

  &.is-center {
    justify-content: center;
  }
}


@each $name in (success, error, warning, info) {
  .my-alert--#{$name}.is-light {
    background-color: var(--my-color-#{$name}-light-9);
    color: var(--my-color-#{$name});
  }

  .my-alert--#{$name}.is-dark {
    background-color: var(--my-color-#{$name});
    color: var(--my-color-white);
  }
}

.my-alert-icon.is-big {
  font-size: 28px;
  width: 28px;
}

.my-alert__content {
  display: table-cell;
  padding: 0 8px;

  .el-alert__description {
    font-size: 12px;
    margin: 5px 0 0;
  }
}

.my-alert__title {
  font-size: 13px;
  line-height: 18px;
}

.my-alert__title.is-blod {
  font-weight: 700;
}

.my-icon-close {
  cursor: pointer;
  position: absolute;
  font-size: 12px;
  opacity: 1;
  top: 12px;
  right: 15px;
}

.my-icon-close.is-customed {
  font-style: normal;
  font-size: 13px;
  top: 9px;
}

.slide-enter-active,
.slide-leave-active {
  transition: opacity var(--my-transition-duration);
}